import request from '../utils/request';
import { AxiosRequestConfig } from 'axios'
export const UserLogin =(user: any): Promise<unknown> => {
    return request({
        url:`/fm/api/user/login`,
        method: 'post',
        data:user,
    });
};
export const UserRegister =(user: any): Promise<unknown> => {
    return request({
        url:`/fm/api/user/register`,
        method: 'post',
        data:user,
    });
};
export const UserUpdate =(user: any): Promise<unknown> => {
    return request({
        url:`/fm/api/user/update`,
        method: 'post',
        data:user,
    });
};
export const UserInfo =(): Promise<unknown> => {
    return request({
        url:`/fm/api/user/info`,
        method: 'get',
    });
};